﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true"
    CodeBehind="Login.aspx.cs" Inherits="ebookstore.Login" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="mainContent" runat="server">
    <p>
        <asp:Label ID="infoLabel" runat="server" Text=""></asp:Label></p>
    <!-- Login Panel -->
    <asp:Panel ID="loginPanel" runat="server">
        <table>
            <tr>
                <td>
                    Username:
                </td>
                <td>
                    <asp:TextBox ID="usernameTextBox" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Password:
                </td>
                <td>
                    <asp:TextBox ID="passwordTextBox" runat="server" TextMode="Password"></asp:TextBox>
                </td>
            </tr>
        </table>
        <asp:Button ID="signInButton" OnClick="signIn" runat="server" Text="Sign in" />
        <asp:Button ID="signUpButton" OnClick="signUp" runat="server" Text="Sign up" />
        <br />
        <!-- Forgot password link -->
        <p>
            Forgot password? Click
            <asp:LinkButton ID="forgotPasswordLinkButton" runat="server" OnClick="forgotPasswordLinkButton_Click">here</asp:LinkButton></p>
    </asp:Panel>
    <!-- Send user password Panel -->
    <asp:Panel ID="emailSendPanel" runat="server" Visible="False">
        <p>
            <strong>Send user password</strong></p>
        Email:
        <asp:TextBox ID="sendEmailTextBox" runat="server"></asp:TextBox>
        <asp:Button ID="sendEmailButton" runat="server" Text="Send" 
            onclick="sendEmailButton_Click" /><br />
        <asp:Label ID="sendEmailInfoLabel" runat="server" Text=""></asp:Label>
    </asp:Panel>
</asp:Content>
